Skip to main content

deleteRegistry

Type

function

Summary

Removes an entry from the Windows system registry.

Syntax

deleteRegistry(<keyPath>)

Description

Use the deleteRegistry function to uninstall a registry entry your application has previously installed.

tip

To delete a subkey, use the setRegistry function to set the subkey's value to empty.

On Mac OS and Unix systems, the deleteRegistry function returns "not supported".

warning

Be careful to use only carefully debugged entries with the deleteRegistry function., and be very certain you know all the ramifications of the entry you're removing. Removing entries from the Windows registry can cause the system to behave unexpectedly or stop functioning altogether.

Parameters

NameTypeDescription

keyPath

The keyPath parameter is the path to a registry entry.

Examples

deleteRegistry("HKEY_CLASSES_ROOT\.txt\")
if not deleteRegistry(storedKey) then answer "Couldn't delete key."

control structure: function

function: setRegistry, queryRegistry, platform

glossary: registry, return

Compatibility and Support

Introduced

LiveCode 2.0

OS

windows

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?